package com.lp.service.impl;

import com.lp.dao.CollegeDao;
import com.lp.po.College;
import com.lp.po.CollegeExample;
import com.lp.service.CollegeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class CollegeServiceImpl implements CollegeService {

    @Resource
    private CollegeDao collegeDao;

    public List<College> findAll() throws Exception {
        CollegeExample collegeExample = new CollegeExample();
        CollegeExample.Criteria criteria = collegeExample.createCriteria();

        criteria.andCollegeidIsNotNull();
        return collegeDao.selectByExample(collegeExample);
    }

}
